/* pages/bookDetail/bookDetail.wxss */
$gal-wrapper-height: 530rpx;

.wrapper {
  // position: absolute;
  height: $gal-wrapper-height;
  display: flex;
  justify-content: center;
  align-items: center;

  .background {
    position: absolute;
    width: 100%;
    height: $gal-wrapper-height;
    filter: blur(20px);
    z-index: 0;
    transform: scale(1.2);
  }

  .detail {
    width: 50%;
    z-index: 1;
    margin-top: 70rpx;
  }
}

.content {
  position: relative;
  padding: 0 30rpx;
  margin-top: 80rpx;
  background-color: white;
  z-index: 1;

  .title {
    font-size: 46rpx;
    padding: 20rpx 0;
  }

  .price {
    color: #C75943;
    font-size: 40rpx;
    font-weight: bolder;
    // padding: 10rpx 0;
    display: flex;
    align-items: center;
    view {
      font-size: 24rpx;
      border: 1rpx solid #C75943;
      padding: 10rpx 14rpx;
      margin-left: 20rpx;
      font-weight: normal;
    }
  }

  .list {
    width: 400rpx;

    .item {
      width: 100%;
      display: flex;
      align-items: center;
      font-size: 26rpx;
      margin: 10rpx 0;

      .left {
        width: 88rpx;
        color: #AAAAAA;
        text-align: justify;
        text-align-last: justify;
        /* 两端对齐 */
      }

      .mid {
        margin: 0 20rpx;
        color: #AAAAAA;
      }

    }

    .author {
      .right {
        color: #497749;
      }
    }
  }
}

.douban {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20rpx;
  padding: 30rpx 20rpx;
  background-color: #FAFAFA;
  .left {
    margin-left: 10rpx;
    color: #DEC8A5;
    font-weight: bold;
  }
  .right {
    margin-right: 50rpx;
  }
}

.descriptionContents {
  margin: 40rpx;
  .title {
    font-size: 36rpx;
    font-weight: normal;
    // margin: 40rpx 20rpx;
  } 
  .content {
    margin-top: 0rpx;
    padding-left: 0;
    font-size: 30rpx;

  }

  .more {
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .change {
    margin-top: 20rpx;
    color: #497749;
    display: flex;
    justify-content: center;
    align-items: center;
    svg {
      margin-top: 7rpx;
    }
  }

}

.comment {
  .header {
    display: flex;
    justify-content: space-between ;
    text {
      font-size: 38rpx;
      margin-left: 20rpx;
    }
    button {
      width: 140rpx;
      padding: 10rpx 0;
      margin: 0;
      margin-right: 25rpx;
      border-radius: 100rpx;
      background-color: #497749;
      font-size: 26rpx;
      color: white;
    }
  }

  .comment-item {
    margin: 25rpx;
    display: flex;
    .left {
      image {
        width: 60rpx;
        border-radius: 50rpx;
        border: 2rpx solid #FAFAFA;
      }
    }
  
    .right {
      display: flex;
      flex-direction: column;
      margin-left: 30rpx;
      width: 100%;
      .top {
        font-size: 32rpx;
        display: flex;
        align-items: center;
        .username {
          margin-right: 20rpx;
        }
      }
      .center {
        margin: 25rpx 0rpx;
        font-size: 32rpx;
      }
  
      .bottom {
        display: flex;
        justify-content: space-between;

        .button {
          svg {
            margin-right: 50rpx;
          }
        }
        .time {
          font-size: 30rpx;
          color: #AAAAAA;
          // margin-right: 30rpx;
        }
      }
    }
  }
}


.recommend {
  .header {
    font-size: 38rpx;
    margin: 25rpx;
  }

  .tags {
    display: flex;
    margin: 20rpx;
    .tag {
      margin: 10rpx;
      font-size: 30rpx;
      border-radius: 10rpx;
      border: 1rpx solid #E6E6E6;
      padding: 3rpx 10rpx;
    }
  }

  .books {
    display: grid;
    // grid-template-columns: repeat(3, 1fr);
    width: 100%;
    .book {
      display: flex;
      flex-direction: column;
      min-width: 0;
      margin: 10rpx 10rpx;
      image {
        width: 100%;
        // height: 240rpx;
        height: 340rpx;
        // height: 540rpx;
      }
      text {
        font-size: 26rpx;
        white-space: nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        text-align: center;
      }
    }
  }
}

.other {
  margin-top: 100rpx;
  height: 200rpx;
}

.bar {
  position: fixed;
  z-index: 1;
  bottom: 0rpx;
  display: grid;
  grid-template-columns: 1fr 1fr 4fr;
  width: 100%;
  height: 100rpx;
  background-color: #FFFFFF;

  .home {
    display: flex;
    flex-direction: column;
    align-self: center;
    text {
      display: flex;
      font-size: 24rpx;
      justify-content: center;
      align-items: center;
    }
    svg {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .shopCar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    font-size: 24rpx;
    text {
      display: flex;
      font-size: 24rpx;
      justify-content: center;
      align-items: center;
    }
    svg {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .buy {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #C75943;
    color: white;
    font-weight: bolder;
    font-size: 32rpx;
    margin: 8rpx 15rpx;
    border-radius: 100rpx;
  }

  .buy2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #497749;
    color: white;
    font-weight: bolder;
    font-size: 32rpx;
    margin: 8rpx 15rpx;
    border-radius: 100rpx;
  }
}